{% extends "base.html" %}
{% load nav_extras %}
{% block header%}
<script type="text/javascript">
    //var myCalendar;
    function doOnLoad() {
        //myCalendar = new dhtmlXCalendarObject([ "dt1", "dt2" ]);
        //myCalendar.loadUserLanguage('cn');
    }
</script>
{% endblock%}
{% block content %}
    <h2>上级审批</h2>
<div class="pageContent">
      <table class="dhtmlxGrid" gridHeight="auto" name="grid2" imgpath="/static/js/codebase/imgs/" width="98%" lightnavigation="true">
    <tr>
            <td type="ro">报表标题</td>
            <td type="ro">报表关键字</td>
            <td type="ro">报表创建人</td>
            <td type="ro">报表类型</td>
            <td type="ro">开始时间</td>
            <td type="ro">结束时间</td>
            <td type="ro">审批人</td>
            <td type="ro">操作</td>
          </tr>
          {%for approve in list.object_list%}
          <tr>
            <td>{{approve.schedule.title}}</td>
            <td>{{approve.schedule.keyword}}</td>
            <td>{{approve.schedule.created_by.last_name}}</td>
            <td>{{approve.schedule.schedule_type.name}}</td>
            <td>{{approve.schedule.start_date|date:"Y-m-d"}}</td>
            <td>{{approve.schedule.end_date|date:"Y-m-d"}}</td>
            <td>{{approve.created_by.last_name}}</td>
            <td><a href="/schedule/view/{{approve.schedule_id}}" target="dialog" rel="view_schedule" title="查看计划">查看计划</a>&nbsp;&nbsp;<a href="/approved/view/{{approve.id}}" target="dialog" rel="view_approve" title="查看审批">查看审批</a></td>
          </tr>
          {%endfor%}
      </table>
    </div>
<div class="pagination">
  {% paging_nav nav_url pn pc %} 
  </div>
{% endblock %}